// default package
// Generated 28 Jul, 2014 8:04:07 PM by Hibernate Tools 3.4.0.CR1
package com.galaxy.bean;

import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * CatalogProductOptionTypePrice generated by hbm2java
 */
@Entity
@Table(name = "catalog_product_option_type_price", catalog = "magento", uniqueConstraints = @UniqueConstraint(columnNames = {
		"option_type_id", "store_id" }))
public class CatalogProductOptionTypePrice implements java.io.Serializable {

	private Integer optionTypePriceId;
	private CatalogProductOptionTypeValue catalogProductOptionTypeValue;
	private CoreStore coreStore;
	private BigDecimal price;
	private String priceType;

	public CatalogProductOptionTypePrice() {
	}

	public CatalogProductOptionTypePrice(
			CatalogProductOptionTypeValue catalogProductOptionTypeValue,
			CoreStore coreStore, BigDecimal price, String priceType) {
		this.catalogProductOptionTypeValue = catalogProductOptionTypeValue;
		this.coreStore = coreStore;
		this.price = price;
		this.priceType = priceType;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "option_type_price_id", unique = true, nullable = false)
	public Integer getOptionTypePriceId() {
		return this.optionTypePriceId;
	}

	public void setOptionTypePriceId(Integer optionTypePriceId) {
		this.optionTypePriceId = optionTypePriceId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "option_type_id", nullable = false)
	public CatalogProductOptionTypeValue getCatalogProductOptionTypeValue() {
		return this.catalogProductOptionTypeValue;
	}

	public void setCatalogProductOptionTypeValue(
			CatalogProductOptionTypeValue catalogProductOptionTypeValue) {
		this.catalogProductOptionTypeValue = catalogProductOptionTypeValue;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "store_id", nullable = false)
	public CoreStore getCoreStore() {
		return this.coreStore;
	}

	public void setCoreStore(CoreStore coreStore) {
		this.coreStore = coreStore;
	}

	@Column(name = "price", nullable = false, precision = 12, scale = 4)
	public BigDecimal getPrice() {
		return this.price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	@Column(name = "price_type", nullable = false, length = 7)
	public String getPriceType() {
		return this.priceType;
	}

	public void setPriceType(String priceType) {
		this.priceType = priceType;
	}

}
